/*
 *@Author: 张楚
 *@Date: 2021-08-02 20:49:24
 *@Description: 日常练习模块
*/

import 'package:flutter/material.dart';
import 'package:get/get.dart';
import 'package:totaldemo/netCrouse/scroll_home/ListWheelScrollView.dart';
import 'package:totaldemo/netCrouse/scroll_home/scroll_index.dart';
import 'package:totaldemo/netCrouse/wangyi_news/wangyi_home.dart';
import '../utils/screen_unit.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';

class NetCoursePage extends StatefulWidget {
  const NetCoursePage({Key key}) : super(key: key);

  @override
  _NetCoursePageState createState() => _NetCoursePageState();
}

class _NetCoursePageState extends State<NetCoursePage> {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text('网络课程'),
      ),
      body: ListView(children: [
        Wrap(
            // mainAxisAlignment: MainAxisAlignment.start,
            direction: Axis.horizontal,
            spacing: 10.w,
            runSpacing: 10.w,
            children: <Widget>[
              ElevatedButton(
                onPressed: () {
                  Get.to(() => WangYiNewsHomePage());
                  // Get.to(WangYiNewsHomePage());
                },
                child: Text('网易新闻客户端'),
              ),
              ElevatedButton(
                onPressed: () {
                  Get.to(() => ScrollHomePage());
                  // Get.to(WangYiNewsHomePage());
                },
                child: Text('滚动教程'),
              ),
            ])
      ]),
    );
  }
}
